package com.lhy.tool;

import com.lhy.tool.generator.GeneratorHelperRunner;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.Bean;

/**
 * {@link GeneratorHelperRunner}
 */
@SpringBootApplication
@MapperScan("com.lhy.tool.database.mapper")
public class Application {

	public static void main(String[] args) {
		new SpringApplicationBuilder(Application.class)
				.web(WebApplicationType.NONE)
				.bannerMode(Banner.Mode.OFF)
				.run(args);
	}

	@Bean
	public GeneratorHelperRunner startupRunner() {
		return new GeneratorHelperRunner();
	}

}
